//
//  RGRecommentListModel.m
//  RedGrass
//
//  Created by wukong on 2019/1/26.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import "RGRecommentListModel.h"
#import "NSString+Extension.h"

@implementation RGChildRecommentListModel

+(BOOL)propertyIsOptional:(NSString*)propertyName{
    return YES;
}

+ (JSONKeyMapper *)keyMapper{
    // 属性名作为key ,字典中的key名 作为 value
    return [[JSONKeyMapper alloc]initWithModelToJSONDictionary:@{@"ID":@"id"}];
}

-(CGFloat) cellHeight{
    //基础高度 56
    CGSize commentSize = [self.comment multiLineSizeWithAttributeText:(KScreenWidth - 70 - 66) font:FONT(customFontName, 15)];
    return commentSize.height + 56;
}

@end

@implementation RGRecommentListModel

+(BOOL)propertyIsOptional:(NSString*)propertyName{
    return YES;
}

+ (JSONKeyMapper *)keyMapper{
    // 属性名作为key ,字典中的key名 作为 value
    return [[JSONKeyMapper alloc]initWithModelToJSONDictionary:@{@"ID":@"id"}];
}

-(CGFloat) height{
    //基础高度 56
    CGSize commentSize = [self.comment multiLineSizeWithAttributeText:(KScreenWidth - 70 - 110) font:FONT(customFontName, 15)];
    return commentSize.height + 56;
}

@end
